package com.tomasio.projects.welcome.events
{
	import com.tomasio.projects.welcome.model.Chave;
	
	import flash.events.Event;
	
	import mx.collections.ArrayCollection;
	
	
	public class ClavicularioServiceEvent extends Event
	{
		public static var CHAVE_LOADED_EVENT:String = "chaveLoadedEvent";
		public static var CHAVES_LOADED_EVENT:String = "chavesLoadedEvent";
		public static var CHAVE_REMOVED_EVENT:String = "chaveRemovedEvent";
		public static var CHAVE_CREATED_EVENT:String = "chaveCreatedEvent";
		public static var CHAVE_UPDATED_EVENT:String = "chaveUpdatedEvent";
		
		
		public var chave:Chave;
		public var chaves:ArrayCollection;
		
		public function ClavicularioServiceEvent(type:String, chave:Chave, chaves:ArrayCollection)
		{
			super(type, true);
			this.chave = chave;
			this.chaves = chaves;
		}
		override public function clone():Event {
			return new ClavicularioServiceEvent(type, chave, chaves);
		}
	}
}